using System;


namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for TestHatchFill.
	/// </summary>
	public class TestHatchFill:Camalon.Drawing.ShapeContainer
    {
        private Camalon.Drawing.ShapePen shapePen1;
        private Camalon.Drawing.LinearGradientFill linearGradientFill;
        private Camalon.Drawing.Shapes.RectangleShape rectangle;
		private Camalon.Drawing.HatchFill hatchFill;

		private void InitializeComponent()
		{
            this.hatchFill = new Camalon.Drawing.HatchFill();
            this.linearGradientFill = new Camalon.Drawing.LinearGradientFill();
            this.shapePen1 = new Camalon.Drawing.ShapePen();
            this.rectangle = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // hatchFill
            // 
            this.hatchFill.BackColor = new Camalon.Drawing.TransparentColor(System.Drawing.Color.IndianRed);
            this.hatchFill.Blend = this.linearGradientFill;
            this.hatchFill.ForegroundBlend = true;
            this.hatchFill.HatchColor = new Camalon.Drawing.TransparentColor(System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(150)))), ((int)(((byte)(223))))));
            this.hatchFill.HatchStyle = System.Drawing.Drawing2D.HatchStyle.DiagonalBrick;
            // 
            // linearGradientFill
            // 
            this.linearGradientFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(122)))), ((int)(((byte)(150)))), ((int)(((byte)(223)))))),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(255)))), ((int)(((byte)(245)))), ((int)(((byte)(238))))), 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Transparent, 1F)};
            // 
            // shapePen1
            // 
            this.shapePen1.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(150)))), ((int)(((byte)(223))))));
            // 
            // rectangle
            // 
            this.rectangle.BottomLeft = new Camalon.Drawing.Corner(0.08333345F, 0.1818187F);
            this.rectangle.BottomRight = new Camalon.Drawing.Corner(0.08333384F, 0.1818187F);
            this.rectangle.Fill = this.hatchFill;
            this.rectangle.Pen = this.shapePen1;
            this.rectangle.Position = new System.Drawing.Point(110, 130);
            this.rectangle.Size = new System.Drawing.Size(430, 140);
            this.rectangle.TopLeft = new Camalon.Drawing.Corner(0.08333319F, 0.1818184F);
            this.rectangle.TopRight = new Camalon.Drawing.Corner(0.09090956F, 0.1818181F);
            // 
            // TestHatchFill
            // 
            this.Position = new System.Drawing.Point(10, 10);
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.rectangle});
            this.Size = new System.Drawing.Size(820, 530);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public TestHatchFill()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
